package com.cn.mobileproject.utils;

import android.app.Activity;
import android.content.Intent;

public class ActivityUtils {

	public static void goToActivity(Activity activity,Class cls){
		if(activity==null){
			return;
		}
		Intent intent = new Intent();
		intent.setClass(activity, cls);
		activity.startActivity(intent);
		activity.finish();
	}
	
	public static void goToActivityNoFinish(Activity activity,Class cls){
		if(activity==null){
			return;
		}
		Intent intent = new Intent();
		intent.setClass(activity, cls);
		activity.startActivity(intent);
	}
}
